# 输入各体重，在同一行中，以逗号间隔各体重
weights_input = input("请输入各体重，以逗号间隔：")
weights = [float(w.strip()) for w in weights_input.split(',')]

# 计算平均体重
average_weight = sum(weights) / len(weights)

# 筛选所有体重中超过平均体重的体重，并另外存储
over_average_weights = [w for w in weights if w > average_weight]

# 输出超过平均体重的体重
print("超过平均体重的体重有：", end='')
for weight in over_average_weights:
    print(f"{weight} ", end='')